package com.jvyou.app.ds.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jvyou.app.common.domain.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;

/**
 * 用户表(User)表数据库访问层
 *
 * @author 橘柚
 * @since 2025-03-04 08:55:26
 */
public interface UserMapper extends BaseMapper<User> {

    @Insert("insert into sys_user_role(user_id,role_id) values(#{id},#{roleId})")
    void addRole(@Param("id") Long id, @Param("roleId") String roleId);
}
